package com.torlesse.authdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/02/19/17:18
 * @Description:日志表实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_log")
public class Log {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField(value = "uid")
    private Integer uid;

    //操作时间
    @TableField(value = "handle_time")
    private Timestamp handleTime;

    //操作方法
    @TableField(value = "method")
    private String method;

    @TableField(value = "ip_address")
    private String ipAddress;
}
